import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layoutContainer',
      component: () => import('@/views/LayoutContainer.vue'),
      redirect: '/memory_manager',
      children: [
        {
          path: '/memory_manager',
          name: 'memoryManager',
          component: () => import('@/views/memory/MemoryManager.vue')
        },
        {
          path: '/disk_manager',
          name: 'diskManager',
          component: () => import('@/views/disk/DiskManager.vue')
        }
      ]
    }
  ]
})

export default router
